package com.javalong.mir.dwz.vo;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.gson.JsonObject;

public class ResponseVO extends BaseVO {
	
	private static final long serialVersionUID = 1L;
	private int errorCode = 200; //默认200，正确
	private Object data; //真正的数据
	private String moreInfo; //错误信息
	
	
	public ResponseVO() {
		
	}
	
	public ResponseVO(Object data) {
		this.data = data;
		this.errorCode = 200;
		this.moreInfo = "";
	}
	
	
	public ResponseVO(Object data,int errorCode,String moreInfo) {
		this.data = data;
		this.errorCode = errorCode;
		this.moreInfo = moreInfo;
	}
	
	public int getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public String getMoreInfo() {
		return moreInfo;
	}
	public void setMoreInfo(String moreInfo) {
		this.moreInfo = moreInfo;
	}

	
	@Override
	public String toString() {
		return "success("+JSONObject.toJSONString(this)+")";
	}
}
